﻿
[assembly: System.Web.PreApplicationStartMethod(typeof(Kooboo.CMS.MediaSyncWrapper.AssemblyInitializer), "Initialize")]
namespace Kooboo.CMS.MediaSyncWrapper
{
    public static class AssemblyInitializer
    {
        public static void Initialize()
        {
            ApplicationInitialization.RegisterInitializerMethod(
                () => 
                {
                    Kooboo.CMS.Content.Services.ServiceFactory.MediaFolderManager = new MediaFolderManagerWrapper();
                    Kooboo.CMS.Content.Services.ServiceFactory.MediaContentManager = new MediaContentManagerWrapper();
                },
                100
            );
        }
    }
}
